package com.autumn.util.data;

import com.autumn.mybatis.criterion.ICriteriaBean;

import java.io.Serializable;

/**
 * 查询条件项目输入
 * 
 * @author 老码农
 *
 *         2017-10-31 16:33:55
 */
public class QueryCriteriaItemInput implements ICriteriaBean , Serializable {

	private static final long serialVersionUID = 574720192953093967L;

	private String logic;
	private String expression;
	private String op;
	private Object value;
	private Object secondValue;

	/**
	 * 获取逻辑
	 * 
	 * @return
	 */
	@Override
	public String getLogic() {
		return logic;
	}

	/**
	 * 设置逻辑
	 * 
	 * @param logic
	 *            And|Or|Not
	 */
	@Override
	public void setLogic(String logic) {
		this.logic = logic;
	}

	/**
	 * 获取表达式
	 * 
	 * @return
	 */
	@Override
	public String getExpression() {
		return expression;
	}

	/**
	 * 设置表达式
	 * 
	 * @param expression
	 *            属性名或列名
	 */
	@Override
	public void setExpression(String expression) {
		this.expression = expression;
	}

	/**
	 * 获取运算符
	 * 
	 * @return
	 */
	@Override
	public String getOp() {
		return op;
	}

	/**
	 * 设置运算符
	 * 
	 * @param op
	 */
	@Override
	public void setOp(String op) {
		this.op = op;
	}

	/**
	 * 获取值
	 */
	@Override
	public Object getValue() {
		return value;
	}

	/**
	 * 设置值
	 */
	@Override
	public void setValue(Object value) {
		this.value = value;
	}

	/**
	 * 获取第二
	 */
	@Override
	public Object getSecondValue() {
		return secondValue;
	}

	@Override
	public void setSecondValue(Object secondValue) {
		this.secondValue = secondValue;
	}

}
